﻿namespace Dyao.Book.Contract
{
    /// <summary>
    /// 任务中心配置
    /// </summary>
    public class TaskCenterSettingsDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 规则ID
        /// </summary>
        public string RuleIds { get; set; }

        /// <summary>
        /// 分类
        /// </summary>
        public TaskCenterCategoryEnum Category { get; set; }

        /// <summary>
        /// 显示名称
        /// </summary>
        public string DisplayName { get; set; }

        /// <summary>
        /// Command名称
        /// </summary>
        public string CommandName { get; set; }

        /// <summary>
        /// 是否允许重试
        /// </summary>
        public bool IsAllowRetry { get; set; }

        /// <summary>
        /// 重试次数
        /// </summary>
        public int MaxRetryCount { get; set; }

        /// <summary>
        /// 超时秒数
        /// </summary>
        public int? TimeOutSecond { get; set; }

        /// <summary>
        /// 权限编号
        /// </summary>
        public string RightNo { get; set; }
    }
}
